<template>
  <div class="swiper_parents">
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="(item,index) in swiperlist" :key="index">
        <img :src="item.url" alt />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  props: {},
  props: ["swiperlist"],
  data() {
    return {};
  },
  computed: {},
  created() {
    // console.log(this.swiperlist);
  },
  mounted() {},
  watch: {},
  methods: {},
  components: {}
};
</script>

<style scoped>
.swiper_parents {
  width: 1200px;
  margin: auto;
}

.swiper_parents >>> .el-carousel {
  position: relative !important;
  width: 100%;
  height: 400px;
}
.el-carousel >>> .el-carousel-item,
.el-carousel >>> .el-carousel__container {
  width: 100%;
  height: 400px !important;
}
.el-carousel >>> .el-carousel__indicators {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.el-carousel .el-carousel__item >>> img {
  height: 100% !important;
  width: 100% !important;
  border-radius: 20px;
}
</style>
